/*
 * main.cpp
 *
 *  Created on: 2013-8-30
 *  Author: xnan
 */

#include <iostream>
#include "include/xnl.h"

void MyCallback( xnl::Object * p_target, xnl::Event * p_event )
{
    std::cout << "nimei" << std::endl;
}

int main( int argc, char * argv[] )
{
    xnl::IEventDispatcher * ed = new xnl::EventDispatcher();
    ed->addEventListener( NULL, typeid(xnl::Event).name(), 0, MyCallback );
    xnl::Event * e = new xnl::Event( NULL, 0 );
    XN_RETAIN( e );
    ed->dispatchEvent( e );
    return 0;
}
